package com.efast.cafe.portal.entity.query;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;


public class TemplateJsonObj implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2457977145834396203L;
	private Integer queryTemplateId;
	private String code;
	private TableConditionJson tableConditionJson;
	private String conditionJson;
	private String tableConditionRef;
	private Integer id;
	private Integer templateSaveId;
	private String isJsonData;
	private Integer optCounter;
	private Date createTime;
	private String createUser;
	private Date lastUpdateTime;
	private String lastUpdateUser;
	private String companyCode;
	public Integer getQueryTemplateId() {
		return queryTemplateId;
	}
	public void setQueryTemplateId(Integer queryTemplateId) {
		this.queryTemplateId = queryTemplateId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTableConditionRef() {
		return tableConditionRef;
	}
	public void setTableConditionRef(String tableConditionRef) {
		this.tableConditionRef = tableConditionRef;
	}
	public Integer getTemplateSaveId() {
		return templateSaveId;
	}
	public void setTemplateSaveId(Integer templateSaveId) {
		this.templateSaveId = templateSaveId;
	}
	public String getIsJsonData() {
		return isJsonData;
	}
	public void setIsJsonData(String isJsonData) {
		this.isJsonData = isJsonData;
	}
	public TableConditionJson getTableConditionJson() {
		return tableConditionJson;
	}
	public void setTableConditionJson(TableConditionJson tableConditionJson) {
		this.tableConditionJson = tableConditionJson;
	}
	public String getConditionJson() {
		return conditionJson;
	}
	public void setConditionJson(String conditionJson) {
		this.conditionJson = conditionJson;
	}
	
	public Integer getOptCounter() {
		return optCounter;
	}
	public void setOptCounter(Integer optCounter) {
		this.optCounter = optCounter;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	public String getLastUpdateUser() {
		return lastUpdateUser;
	}
	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}
	public String getCompanyCode() {
		return companyCode;
	}
	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	
}
